package com.rota.mapper;

import com.rota.domain.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Long id);

    List<UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    UserInfo getUserInfoByOpenId(String openId);

    UserInfo getUserInfoByUsername(String username);

    UserInfo findUser(@Param("username") String username, @Param("password") String password);
}